#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include <QLineEdit>
#include <QComboBox>
#include <QSpinBox>
#include <QTextEdit>
#include <QPushButton>
#include <QLCDNumber>
#include <QTimer>
#include <QTimerEvent>




class mywidget : public QWidget
{
    Q_OBJECT
public:
    explicit mywidget(QWidget *parent = nullptr);

signals:

public slots:
    void textout();                     //LineEdit中文本改变就输出打印
    void combtextout();
    void spinboxtext();
    void showtime();


public:
    QLineEdit* lineEdit;
    QPushButton* btn1;
    QPushButton* btn2;
    QPushButton* btn3;
    QComboBox* comb;
    QSpinBox* spinbox;
    QTextEdit* textEdit;
    QLCDNumber* lcd;

    int time_id1;
    static int start_time;

public:
    void timerEvent(QTimerEvent* ev);

};

#endif // MYWIDGET_H
